
Imports Cdm.DataCore.Entities
Partial Class DataLoad_UploadErrorDisplay
    Inherits System.Web.UI.UserControl


    Public Sub SetParticipant(ByVal p As Participant)
        Me.ParticipantNameLabel.Text = p.FullName
        Me.ErrorCountLabel.Text = String.Concat("(", p.ValidateErrors.Count.ToString(), ")")
        Dim allErrorList As ArrayList = p.ValidateErrors
        Me.plusMinus.Attributes.Add("onclick", String.Format("return toggleError('{0}','{1}');", plusMinus.ClientID, Me.errorDisplay.ClientID))
        Me.ErrorListGridView.DataSource = allErrorList
        Me.ErrorListGridView.DataBind()
        Me.errorDisplay.Style("display") = "none"
    End Sub
    
End Class
